<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const heroImage = (value) => {
      //   return `https://game.gtimg.cn/images/yxzj/img201606/heroimg/${value}/${value}.jpg`
      // }
      // // 调用函数
      // const str = heroImage(106)

      // console.log(str)

      function computed(fn) {
        return fn()
      }
      const heroImage = computed(function () {
        return (value) => {
          return `https://game.gtimg.cn/images/yxzj/img201606/heroimg/${value}/${value}.jpg`
        }
      })
      console.log(heroImage)
      console.log(heroImage(105))

      
    </script>
  </body>
</html>
